package com.ibeeking.found.common.annotation;

import com.ibeeking.found.common.config.login.RequestUserResolverConfig;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 在启动类上添加该注解
 * 开启自动请求用户对象注入
 * 获取请求头用户信息转化CurrentUser
 *
 * @Author ibeeking
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(RequestUserResolverConfig.class)
public @interface EnableRequestUser {
}
